<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>web-gobang</title>
        <link rel="stylesheet" href="css/style.css">
    </head>
    <body>
    <div id="box">
        <div id="centent">
            <canvas id="canvas" width="450" height="450"></canvas>
        </div>
        <button id="match">开始匹配</button>
        <button id="button">回撤</button>
        <button id="anew">重开</button>
        <div id="state">
            <div class="state-chess Bchess"></div>
            <div class="chessName">黑棋走</div>
        </div>
        <div id="winner">
            <div class="state-chess Bchess"></div>
            <div class="chessName"></div>
        </div>
    </div>

    <script src="js/script.js"></script>
    <script src="js/jquery-2.1.0.min.js"></script>
    <script>
        game.drawLine()
        game.start_match.addEventListener("mousedown", game.SetMatch)
        game.canvas.addEventListener("mousedown", game.canvasClick)
        game.regret_chess.addEventListener("mousedown", game.regret)
        game.anew.addEventListener("mousedown", game.anewClick)
    </script>

    </body>
</html>
